home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3724 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  884 b 

  1. Path: connix.com!news
  2. From: Scott Hawley <shawley@connix.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Abend caused by "strcmp"
  5. Date: 25 Jan 1996 18:09:01 GMT
  6. Organization: SHAWLEY SYSTEMS
  7. Message-ID: <4e8gvt$n1@comet.connix.com>
  8. References: <4e4guc$o1u@tst.hk.super.net>
  9. NNTP-Posting-Host: shawley.connix.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
  14.  
  15. Depending on the include file, for what you defined NULL to it will
  16. work or not. strcmp needs it to be a string that is NULL terminated.
  17. the NULL you are using is probally defined to 0 or '\0'. A single
  18. Null character. you can use "" or define NULL with a #define as ""
  19. but then you will get multilple defines unless you do not include
  20. what ever header that has the NULL defined. I would suggest
  21. you define a NULL_STR as "" and use that.
  22.  
  23.